.PYONY : all
all :
	@cd Compiler_Server;\
	make;\
	cd -;\
	cd OnlineJudge_Server;\
	make;\
	cd -;

.PYONY : output
output :
	@mkdir -p output/compiler_server;\
	mkdir -p output/onlineoj_server;\
	cp -rf Compiler_Server/temp output/compiler_server/;\
	cp -rf Compiler_Server/compiler_server output/compiler_server/;\
	cp -rf OnlineJudge_Server/conf output/onlineoj_server/;\
	cp -rf OnlineJudge_Server/lib output/onlineoj_server/;\
	cp -rf OnlineJudge_Server/ctemplate_html output/onlineoj_server/;\
	cp -rf OnlineJudge_Server/questions output/onlineoj_server/;\
	cp -rf OnlineJudge_Server/wwwroot output/onlineoj_server/;\
	cp -rf OnlineJudge_Server/oj_server output/onlineoj_server/;

.PHONY : clean
clean :
	@cd Compiler_Server;\
	make clean;\
	cd -;\
	cd OnlineJudge_Server;\
	make clean;\
	cd -;\
	rm -rf output;